@extends('admin.base')
@section('content')
    <!--面包屑导航 开始-->
    <div class="crumb_warp">
        <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
        <i class="fa fa-home"></i> <a href="{{url('admin')}}">首页</a> &raquo; <a href="#">权限管理</a> &raquo; 添加权限
    </div>
    <!--面包屑导航 结束-->

    <!--结果集标题与导航组件 开始-->
    <div class="result_wrap">
        <div class="result_title">
            <h3>快捷操作</h3>
            @if (count($errors) > 0)
                <div class="mark">
                    <ul>
                        @if(is_object($errors))
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        @else
                            <li>{{ session('errors') }}</li>
                        @endif
                    </ul>
                </div>
            @endif
        </div>
        <div class="result_content">
            <div class="short_wrap">
                <a href="{{url('admin/permission/create')}}"><i class="fa fa-plus"></i>添加权限管理</a>
               
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->

    <div class="result_wrap">
        <form action="{{url('admin/permission/'.$data->id)}}" method="post">
            {{csrf_field()}}
            <input type="hidden" name="_method" value="put">
            <table class="add_tab">
                <tbody>
                <tr>
                    <th><i class="require">*</i>权限：</th>
                    <td>
                        <input type="text" name="name" value="{{$data->name}}">
                     
                    </td>
                </tr>
                <tr>
                    <th><i class="require">*</i>权限说明：</th>
                    <td>
                        <input type="text" name="display_name" value="{{$data->display_name}}" class="lg">
                       
                    </td>
                </tr>

                <tr>
                    <th></th>
                    <td>
                        <button type="submit" class="btn btn-primary">修改</button>
                        <button type="submit" class="btn btn-primary" onclick="history.go(-1)">返回</button>
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
@endsection